<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="grid-wrap">
    <table data-id="user_table"></table>
</div>
<div data-id="news_tb" class="nsdb">
    <shiro:hasPermission name="member:data:add">
        <a data-href="${pageContext.request.contextPath}/app/api/sysMember/toAdd" data-key="add" iconCls="fa fa-plus fa-lg" plain="true">新增</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="member:data:del">
        <a data-href="${pageContext.request.contextPath}/app/api/sysMember/delete" data-key="del" iconCls="fa fa-trash fa-lg" plain="true">删除</a>
    </shiro:hasPermission>
    <%--<shiro:hasPermission name="member:import:list">--%>
        <%--<a data-href="javascript:void(0)" data-key="upload" iconCls="fa fa-upload fa-lg" plain="true">批量导入</a>--%>
    <%--</shiro:hasPermission>--%>
        <a data-href="${pageContext.request.contextPath}/app/api/sysMember/toSearch" data-key="search" iconCls="fa fa-search fa-lg" plain="true">搜索</a>
        <a data-href="#" data-key="search_all" iconCls="fa fa-refresh fa-lg" plain="true">搜索全部</a>
</div>

<div data-id="user_list_btn">
    <shiro:hasPermission name='member:data:update'>
        <a data-href='${pageContext.request.contextPath}/app/api/sysMember/toUpdate' data-id="{{id}}" data-key="edit" data-options='iconCls:"fa fa-edit fa-lg",plain:true'>编辑</a>
    </shiro:hasPermission>
    <%--<shiro:hasPermission name='member:permission:add'>--%>
        <%--<a data-href='${pageContext.request.contextPath}/app/api/sysMember/toRes' data-id="{{id}}" data-key="security" data-options='iconCls:"icon-security",plain:true'>分配权限</a>--%>
    <%--</shiro:hasPermission>--%>
    <shiro:hasPermission name='member:role:add'>
        <a data-href='${pageContext.request.contextPath}/app/api/sysMember/toRole' data-id="{{id}}" data-key="role" data-options='iconCls:"fa fa-users fa-lg",plain:true'>分配角色</a>
    </shiro:hasPermission>
    <shiro:hasPermission name='member:organization:add'>
        <a data-href='${pageContext.request.contextPath}/app/api/sysMember/toOrganization' data-id="{{id}}" data-key="department" data-options='iconCls:"fa fa-object-group fa-lg",plain:true'>分配小组</a>
    </shiro:hasPermission>
        <a data-href="#" data-id="{{id}}" data-key="view" iconCls="fa fa-eye fa-lg" plain="true">查看详情</a>
</div>
